Tabnine Logo
AwsProvider$AwsRegion.setName
Code IndexAdd Tabnine to your IDE (free)

How to use
setName
method
in
com.netflix.spinnaker.halyard.config.model.v1.providers.aws.AwsProvider$AwsRegion

Best Java code snippets using com.netflix.spinnaker.halyard.config.model.v1.providers.aws.AwsProvider$AwsRegion.setName (Showing top 4 results out of 315)

origin: com.netflix.spinnaker.halyard/halyard-cli

@Override
protected Account buildAccount(String accountName) {
 AwsAccount account = (AwsAccount) new AwsAccount().setName(accountName);
 account.setDefaultKeyPair(defaultKeyPair)
  .setEdda(edda)
  .setDiscovery(discovery)
  .setAccountId(accountId)
  .setRegions(regions
   .stream()
   .map(r -> new AwsProvider.AwsRegion().setName(r))
   .collect(Collectors.toList())
  )
  .setAssumeRole(assumeRole);
 return account;
}
origin: spinnaker/halyard

@Override
protected Account buildAccount(String accountName) {
 AwsAccount account = (AwsAccount) new AwsAccount().setName(accountName);
 account.setDefaultKeyPair(defaultKeyPair)
  .setEdda(edda)
  .setDiscovery(discovery)
  .setAccountId(accountId)
  .setRegions(regions
   .stream()
   .map(r -> new AwsProvider.AwsRegion().setName(r))
   .collect(Collectors.toList())
  )
  .setAssumeRole(assumeRole);
 return account;
}
origin: spinnaker/halyard

 @Override
 protected Account editAccount(AwsAccount account) {
  account.setDefaultKeyPair(isSet(defaultKeyPair) ? defaultKeyPair : account.getDefaultKeyPair());
  account.setEdda(isSet(edda) ? edda : account.getEdda());
  account.setDiscovery(isSet(discovery) ? discovery : account.getDiscovery());
  account.setAccountId(isSet(accountId) ? accountId : account.getAccountId());
  account.setAssumeRole(isSet(assumeRole) ? assumeRole : account.getAssumeRole());

  try {
   List<String> existingRegions = account
    .getRegions()
    .stream()
    .map(AwsProvider.AwsRegion::getName).collect(Collectors.toList());
   regions = updateStringList(existingRegions, regions, addRegion, removeRegion);
   account.setRegions(regions
    .stream()
    .map(r -> new AwsProvider.AwsRegion().setName(r))
    .collect(Collectors.toList())
   );
  } catch (IllegalArgumentException e) {
   throw new IllegalArgumentException("Set either --regions or --[add/remove]-region");
  }

  return account;
 }
}
origin: com.netflix.spinnaker.halyard/halyard-cli

 @Override
 protected Account editAccount(AwsAccount account) {
  account.setDefaultKeyPair(isSet(defaultKeyPair) ? defaultKeyPair : account.getDefaultKeyPair());
  account.setEdda(isSet(edda) ? edda : account.getEdda());
  account.setDiscovery(isSet(discovery) ? discovery : account.getDiscovery());
  account.setAccountId(isSet(accountId) ? accountId : account.getAccountId());
  account.setAssumeRole(isSet(assumeRole) ? assumeRole : account.getAssumeRole());

  try {
   List<String> existingRegions = account
    .getRegions()
    .stream()
    .map(AwsProvider.AwsRegion::getName).collect(Collectors.toList());
   regions = updateStringList(existingRegions, regions, addRegion, removeRegion);
   account.setRegions(regions
    .stream()
    .map(r -> new AwsProvider.AwsRegion().setName(r))
    .collect(Collectors.toList())
   );
  } catch (IllegalArgumentException e) {
   throw new IllegalArgumentException("Set either --regions or --[add/remove]-region");
  }

  return account;
 }
}
com.netflix.spinnaker.halyard.config.model.v1.providers.awsAwsProvider$AwsRegionsetName

Popular methods of AwsProvider$AwsRegion

  • <init>
  • getName

Popular in Java

  • Reactive rest calls using spring rest template
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • compareTo (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now