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

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

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

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

List<AwsProvider.AwsRegion> regionList = awsAccount.getRegions();
if (!regionList.isEmpty() && regionList.get(0) != null) {
 bindings.put("aws.default.region", regionList.get(0).getName());
origin: com.netflix.spinnaker.halyard/halyard-deploy

AwsProvider.AwsRegion firstRegion = awsAccount.getRegions().get(0);
if (firstRegion != null) {
 bindings.put("aws.default.region", firstRegion.getName());
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;
 }
}
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 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;
}
com.netflix.spinnaker.halyard.config.model.v1.providers.awsAwsProvider$AwsRegion

Most used methods

  • <init>
  • getName
  • setName

Popular in Java

  • Updating database using SQL prepared statement
  • getExternalFilesDir (Context)
  • runOnUiThread (Activity)
  • startActivity (Activity)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • JComboBox (javax.swing)
  • JFileChooser (javax.swing)
  • JPanel (javax.swing)
  • Top 12 Jupyter Notebook extensions
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