com.spotinst.sdkjava.model.bl.ocean.ecs.LaunchSpecIamInstanceProfileSpecification Maven / Gradle / Ivy
package com.spotinst.sdkjava.model.bl.ocean.ecs;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import java.util.HashSet;
import java.util.Set;
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class LaunchSpecIamInstanceProfileSpecification {
@JsonIgnore
private Set isSet;
private String arn;
private String name;
private LaunchSpecIamInstanceProfileSpecification() {
isSet = new HashSet<>();
}
public Set getIsSet() {
return isSet;
}
public void setIsSet(Set isSet) {
this.isSet = isSet;
}
public String getArn() {
return arn;
}
public void setArn(String arn) {
isSet.add("arn");
this.arn = arn;
}
public String getName() {
return name;
}
public void setName(String name) {
isSet.add("name");
this.name = name;
}
public static class Builder {
private LaunchSpecIamInstanceProfileSpecification iamInstanceProfile;
private Builder() {
this.iamInstanceProfile = new LaunchSpecIamInstanceProfileSpecification();
}
public static Builder get() {
return new Builder();
}
public Builder setArn(final String arn) {
iamInstanceProfile.setArn(arn);
return this;
}
public Builder setName(final String name) {
iamInstanceProfile.setArn(name);
return this;
}
public LaunchSpecIamInstanceProfileSpecification build() {
return iamInstanceProfile;
}
}
@JsonIgnore
public boolean isArnSet() {
return isSet.contains("arn");
}
@JsonIgnore
public boolean isNameSet() {
return isSet.contains("name");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy