use of com.sequenceiq.distrox.api.v1.distrox.model.instancegroup.template.AwsEncryptionV1Parameters in project cloudbreak by hortonworks.
the class InstanceTemplateParameterConverterTest method encryption.
private AwsEncryptionV1Parameters encryption(EncryptionType type, String key) {
AwsEncryptionV1Parameters encryption = new AwsEncryptionV1Parameters();
encryption.setType(type);
encryption.setKey(key);
return encryption;
}
use of com.sequenceiq.distrox.api.v1.distrox.model.instancegroup.template.AwsEncryptionV1Parameters in project cloudbreak by hortonworks.
the class AwsCloudProvider method setInstanceTemplateV1Parameters.
@Override
public void setInstanceTemplateV1Parameters(InstanceTemplateV1Request instanceTemplateV1Request) {
AwsInstanceTemplateV1Parameters awsInstanceTemplateV1Parameters = new AwsInstanceTemplateV1Parameters();
AwsEncryptionV1Parameters awsEncryptionV1Parameters = new AwsEncryptionV1Parameters();
awsEncryptionV1Parameters.setType(EncryptionType.DEFAULT);
awsInstanceTemplateV1Parameters.setEncryption(awsEncryptionV1Parameters);
awsInstanceTemplateV1Parameters.setSpot(getAwsInstanceTemplateV1SpotParameters());
instanceTemplateV1Request.setAws(awsInstanceTemplateV1Parameters);
}
use of com.sequenceiq.distrox.api.v1.distrox.model.instancegroup.template.AwsEncryptionV1Parameters in project cloudbreak by hortonworks.
the class InstanceTemplateParameterConverter method convert.
private AwsEncryptionV1Parameters convert(AwsEncryptionV4Parameters source, DetailedEnvironmentResponse environment) {
AwsEncryptionV1Parameters response = new AwsEncryptionV1Parameters();
response.setKey(source.getKey());
response.setType(source.getType());
return response;
}
Aggregations