Skip to content

Commit

Permalink
AWS SDK for Java 1.11.20
Browse files Browse the repository at this point in the history
  • Loading branch information
AWS committed Jul 22, 2016
1 parent 698362a commit 9bb73fc
Show file tree
Hide file tree
Showing 250 changed files with 124,216 additions and 119,175 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ dependencies.
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-bom</artifactId>
<version>1.11.19</version>
<version>1.11.20</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down
4 changes: 2 additions & 2 deletions aws-java-sdk-acm/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-pom</artifactId>
<version>1.11.20-SNAPSHOT</version>
<version>1.11.20</version>
</parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-acm</artifactId>
Expand All @@ -19,7 +19,7 @@
<artifactId>aws-java-sdk-core</artifactId>
<groupId>com.amazonaws</groupId>
<optional>false</optional>
<version>1.11.20-SNAPSHOT</version>
<version>1.11.20</version>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,17 @@ public class CertificateDetail implements Serializable, Cloneable {
* </p>
*/
private java.util.List<String> inUseBy;
/**
* <p>
* The reason the certificate request failed. This value exists only when
* the structure's <code>Status</code> is <code>FAILED</code>. For more
* information, see <a href=
* "http://docs.aws.amazon.com/acm/latest/userguide/troubleshooting.html#troubleshooting-failed"
* >Certificate Request Failed</a> in the <i>AWS Certificate Manager User
* Guide</i>.
* </p>
*/
private String failureReason;

/**
* <p>
Expand Down Expand Up @@ -1181,6 +1192,131 @@ public CertificateDetail withInUseBy(java.util.Collection<String> inUseBy) {
return this;
}

/**
* <p>
* The reason the certificate request failed. This value exists only when
* the structure's <code>Status</code> is <code>FAILED</code>. For more
* information, see <a href=
* "http://docs.aws.amazon.com/acm/latest/userguide/troubleshooting.html#troubleshooting-failed"
* >Certificate Request Failed</a> in the <i>AWS Certificate Manager User
* Guide</i>.
* </p>
*
* @param failureReason
* The reason the certificate request failed. This value exists only
* when the structure's <code>Status</code> is <code>FAILED</code>.
* For more information, see <a href=
* "http://docs.aws.amazon.com/acm/latest/userguide/troubleshooting.html#troubleshooting-failed"
* >Certificate Request Failed</a> in the <i>AWS Certificate Manager
* User Guide</i>.
* @see FailureReason
*/

public void setFailureReason(String failureReason) {
this.failureReason = failureReason;
}

/**
* <p>
* The reason the certificate request failed. This value exists only when
* the structure's <code>Status</code> is <code>FAILED</code>. For more
* information, see <a href=
* "http://docs.aws.amazon.com/acm/latest/userguide/troubleshooting.html#troubleshooting-failed"
* >Certificate Request Failed</a> in the <i>AWS Certificate Manager User
* Guide</i>.
* </p>
*
* @return The reason the certificate request failed. This value exists only
* when the structure's <code>Status</code> is <code>FAILED</code>.
* For more information, see <a href=
* "http://docs.aws.amazon.com/acm/latest/userguide/troubleshooting.html#troubleshooting-failed"
* >Certificate Request Failed</a> in the <i>AWS Certificate Manager
* User Guide</i>.
* @see FailureReason
*/

public String getFailureReason() {
return this.failureReason;
}

/**
* <p>
* The reason the certificate request failed. This value exists only when
* the structure's <code>Status</code> is <code>FAILED</code>. For more
* information, see <a href=
* "http://docs.aws.amazon.com/acm/latest/userguide/troubleshooting.html#troubleshooting-failed"
* >Certificate Request Failed</a> in the <i>AWS Certificate Manager User
* Guide</i>.
* </p>
*
* @param failureReason
* The reason the certificate request failed. This value exists only
* when the structure's <code>Status</code> is <code>FAILED</code>.
* For more information, see <a href=
* "http://docs.aws.amazon.com/acm/latest/userguide/troubleshooting.html#troubleshooting-failed"
* >Certificate Request Failed</a> in the <i>AWS Certificate Manager
* User Guide</i>.
* @return Returns a reference to this object so that method calls can be
* chained together.
* @see FailureReason
*/

public CertificateDetail withFailureReason(String failureReason) {
setFailureReason(failureReason);
return this;
}

/**
* <p>
* The reason the certificate request failed. This value exists only when
* the structure's <code>Status</code> is <code>FAILED</code>. For more
* information, see <a href=
* "http://docs.aws.amazon.com/acm/latest/userguide/troubleshooting.html#troubleshooting-failed"
* >Certificate Request Failed</a> in the <i>AWS Certificate Manager User
* Guide</i>.
* </p>
*
* @param failureReason
* The reason the certificate request failed. This value exists only
* when the structure's <code>Status</code> is <code>FAILED</code>.
* For more information, see <a href=
* "http://docs.aws.amazon.com/acm/latest/userguide/troubleshooting.html#troubleshooting-failed"
* >Certificate Request Failed</a> in the <i>AWS Certificate Manager
* User Guide</i>.
* @see FailureReason
*/

public void setFailureReason(FailureReason failureReason) {
this.failureReason = failureReason.toString();
}

/**
* <p>
* The reason the certificate request failed. This value exists only when
* the structure's <code>Status</code> is <code>FAILED</code>. For more
* information, see <a href=
* "http://docs.aws.amazon.com/acm/latest/userguide/troubleshooting.html#troubleshooting-failed"
* >Certificate Request Failed</a> in the <i>AWS Certificate Manager User
* Guide</i>.
* </p>
*
* @param failureReason
* The reason the certificate request failed. This value exists only
* when the structure's <code>Status</code> is <code>FAILED</code>.
* For more information, see <a href=
* "http://docs.aws.amazon.com/acm/latest/userguide/troubleshooting.html#troubleshooting-failed"
* >Certificate Request Failed</a> in the <i>AWS Certificate Manager
* User Guide</i>.
* @return Returns a reference to this object so that method calls can be
* chained together.
* @see FailureReason
*/

public CertificateDetail withFailureReason(FailureReason failureReason) {
setFailureReason(failureReason);
return this;
}

/**
* Returns a string representation of this object; useful for testing and
* debugging.
Expand Down Expand Up @@ -1228,7 +1364,9 @@ public String toString() {
if (getSignatureAlgorithm() != null)
sb.append("SignatureAlgorithm: " + getSignatureAlgorithm() + ",");
if (getInUseBy() != null)
sb.append("InUseBy: " + getInUseBy());
sb.append("InUseBy: " + getInUseBy() + ",");
if (getFailureReason() != null)
sb.append("FailureReason: " + getFailureReason());
sb.append("}");
return sb.toString();
}
Expand Down Expand Up @@ -1337,6 +1475,11 @@ public boolean equals(Object obj) {
if (other.getInUseBy() != null
&& other.getInUseBy().equals(this.getInUseBy()) == false)
return false;
if (other.getFailureReason() == null ^ this.getFailureReason() == null)
return false;
if (other.getFailureReason() != null
&& other.getFailureReason().equals(this.getFailureReason()) == false)
return false;
return true;
}

Expand Down Expand Up @@ -1391,6 +1534,10 @@ public int hashCode() {
: getSignatureAlgorithm().hashCode());
hashCode = prime * hashCode
+ ((getInUseBy() == null) ? 0 : getInUseBy().hashCode());
hashCode = prime
* hashCode
+ ((getFailureReason() == null) ? 0 : getFailureReason()
.hashCode());
return hashCode;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
/*
* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights
* Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/

package com.amazonaws.services.certificatemanager.model;

/**
*
*/
public enum FailureReason {

NO_AVAILABLE_CONTACTS("NO_AVAILABLE_CONTACTS"),
ADDITIONAL_VERIFICATION_REQUIRED("ADDITIONAL_VERIFICATION_REQUIRED"),
DOMAIN_NOT_ALLOWED("DOMAIN_NOT_ALLOWED"),
INVALID_PUBLIC_DOMAIN("INVALID_PUBLIC_DOMAIN"),
OTHER("OTHER");

private String value;

private FailureReason(String value) {
this.value = value;
}

@Override
public String toString() {
return this.value;
}

/**
* Use this in place of valueOf.
*
* @param value
* real value
* @return FailureReason corresponding to the value
*/
public static FailureReason fromValue(String value) {
if (value == null || "".equals(value)) {
throw new IllegalArgumentException("Value cannot be null or empty!");
}

for (FailureReason enumEntry : FailureReason.values()) {
if (enumEntry.toString().equals(value)) {
return enumEntry;
}
}

throw new IllegalArgumentException("Cannot create enum from " + value
+ " value!");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ public void marshall(CertificateDetail certificateDetail,
}
jsonGenerator.writeEndArray();
}
if (certificateDetail.getFailureReason() != null) {
jsonGenerator.writeFieldName("FailureReason").writeValue(
certificateDetail.getFailureReason());
}

jsonGenerator.writeEndObject();
} catch (Throwable t) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ public CertificateDetail unmarshall(JsonUnmarshallerContext context)
context.getUnmarshaller(String.class))
.unmarshall(context));
}
if (context.testExpression("FailureReason", targetDepth)) {
context.nextToken();
certificateDetail.setFailureReason(context.getUnmarshaller(
String.class).unmarshall(context));
}
} else if (token == END_ARRAY || token == END_OBJECT) {
if (context.getLastParsedParentElement() == null
|| context.getLastParsedParentElement().equals(
Expand Down
Loading

0 comments on commit 9bb73fc

Please sign in to comment.