com.amazonaws.services.simplesystemsmanagement.model.ResourcePolicyInvalidParameterException Maven / Gradle / Ivy
/*
* Copyright 2019-2024 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.simplesystemsmanagement.model;
import javax.annotation.Generated;
/**
*
* One or more parameters specified for the call aren't valid. Verify the parameters and their values and try again.
*
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ResourcePolicyInvalidParameterException extends com.amazonaws.services.simplesystemsmanagement.model.AWSSimpleSystemsManagementException {
private static final long serialVersionUID = 1L;
private com.amazonaws.internal.SdkInternalList parameterNames;
/**
* Constructs a new ResourcePolicyInvalidParameterException with the specified error message.
*
* @param message
* Describes the error encountered.
*/
public ResourcePolicyInvalidParameterException(String message) {
super(message);
}
/**
* @return
*/
@com.fasterxml.jackson.annotation.JsonProperty("ParameterNames")
public java.util.List getParameterNames() {
if (parameterNames == null) {
parameterNames = new com.amazonaws.internal.SdkInternalList();
}
return parameterNames;
}
/**
* @param parameterNames
*/
@com.fasterxml.jackson.annotation.JsonProperty("ParameterNames")
public void setParameterNames(java.util.Collection parameterNames) {
if (parameterNames == null) {
this.parameterNames = null;
return;
}
this.parameterNames = new com.amazonaws.internal.SdkInternalList(parameterNames);
}
/**
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setParameterNames(java.util.Collection)} or {@link #withParameterNames(java.util.Collection)} if you want
* to override the existing values.
*
*
* @param parameterNames
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ResourcePolicyInvalidParameterException withParameterNames(String... parameterNames) {
if (this.parameterNames == null) {
setParameterNames(new com.amazonaws.internal.SdkInternalList(parameterNames.length));
}
for (String ele : parameterNames) {
this.parameterNames.add(ele);
}
return this;
}
/**
* @param parameterNames
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ResourcePolicyInvalidParameterException withParameterNames(java.util.Collection parameterNames) {
setParameterNames(parameterNames);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy