RotationRequest.java

1
/**
2
   Copyright 2018 Carlos Macasaet
3
4
   Licensed under the Apache License, Version 2.0 (the "License");
5
   you may not use this file except in compliance with the License.
6
   You may obtain a copy of the License at
7
8
       https://www.apache.org/licenses/LICENSE-2.0
9
10
   Unless required by applicable law or agreed to in writing, software
11
   distributed under the License is distributed on an "AS IS" BASIS,
12
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
   See the License for the specific language governing permissions and
14
   limitations under the License.
15
 */
16
package com.macasaet.fernet.aws.secretsmanager.rotation;
17
18
import javax.xml.bind.annotation.XmlAttribute;
19
20
/**
21
 * A request from AWS Secrets Manager to rotate a secret.
22
 *
23
 * <p>Copyright &copy; 2018 Carlos Macasaet.</p>
24
 * @author Carlos Macasaet
25
 */
26
public class RotationRequest {
27
28
    @XmlAttribute(name = "SecretId", required = true)
29
    private String secretId;
30
    @XmlAttribute(name = "ClientRequestToken", required = true)
31
    private String clientRequestToken;
32
    @XmlAttribute(name = "Step", required = true)
33
    private Step step;
34
35
    /**
36
     * @return the ARN of the Secrets Manager secret in the form arn:aws:secretsmanager:{region}:{account}:secret:{secret-name}.
37
     */
38
    public String getSecretId() {
39 1 1. getSecretId : mutated return of Object value for com/macasaet/fernet/aws/secretsmanager/rotation/RotationRequest::getSecretId to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return secretId;
40
    }
41
42
    /**
43
     * @param secretId the ARN of the Secrets Manager secret in the form arn:aws:secretsmanager:{region}:{account}:secret:{secret-name}.
44
     */
45
    public void setSecretId(final String secretId) {
46
        this.secretId = secretId;
47
    }
48
49
    /**
50
     * @return a unique identifier for this rotation operation, which will span multiple requests. This is typically a UUID.
51
     */
52
    public String getClientRequestToken() {
53 1 1. getClientRequestToken : mutated return of Object value for com/macasaet/fernet/aws/secretsmanager/rotation/RotationRequest::getClientRequestToken to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return clientRequestToken;
54
    }
55
56
    /**
57
     * @param clientRequestToken a unique identifier for this rotation operation, which will span multiple requests. This is typically a UUID.
58
     */
59
    public void setClientRequestToken(final String clientRequestToken) {
60
        this.clientRequestToken = clientRequestToken;
61
    }
62
63
    /**
64
     * @return the phase of the rotation process
65
     * @see Step
66
     */
67
    public Step getStep() {
68 1 1. getStep : mutated return of Object value for com/macasaet/fernet/aws/secretsmanager/rotation/RotationRequest::getStep to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return step;
69
    }
70
71
    /**
72
     * @param step the phase of the rotation process
73
     * @see Step
74
     */
75
    public void setStep(final Step step) {
76
        this.step = step;
77
    }
78
79
    public String toString() {
80
        final StringBuilder builder = new StringBuilder(256);
81
        builder.append("RotationRequest [SecretId=")
82
            .append(getSecretId())
83
            .append(", ClientRequestToken=")
84
            .append(getClientRequestToken())
85
            .append(", Step=")
86
            .append(getStep())
87
            .append(']');
88 1 1. toString : mutated return of Object value for com/macasaet/fernet/aws/secretsmanager/rotation/RotationRequest::toString to ( if (x != null) null else throw new RuntimeException ) → SURVIVED
        return builder.toString();
89
    }
90
91
}

Mutations

39

1.1
Location : getSecretId
Killed by : com.macasaet.fernet.aws.secretsmanager.rotation.RotationRequestTest.verifyInputCorrectlyParsed(com.macasaet.fernet.aws.secretsmanager.rotation.RotationRequestTest)
mutated return of Object value for com/macasaet/fernet/aws/secretsmanager/rotation/RotationRequest::getSecretId to ( if (x != null) null else throw new RuntimeException ) → KILLED

53

1.1
Location : getClientRequestToken
Killed by : com.macasaet.fernet.aws.secretsmanager.rotation.RotationRequestTest.verifyInputCorrectlyParsed(com.macasaet.fernet.aws.secretsmanager.rotation.RotationRequestTest)
mutated return of Object value for com/macasaet/fernet/aws/secretsmanager/rotation/RotationRequest::getClientRequestToken to ( if (x != null) null else throw new RuntimeException ) → KILLED

68

1.1
Location : getStep
Killed by : com.macasaet.fernet.aws.secretsmanager.rotation.RotationRequestTest.verifyInputCorrectlyParsed(com.macasaet.fernet.aws.secretsmanager.rotation.RotationRequestTest)
mutated return of Object value for com/macasaet/fernet/aws/secretsmanager/rotation/RotationRequest::getStep to ( if (x != null) null else throw new RuntimeException ) → KILLED

88

1.1
Location : toString
Killed by : none
mutated return of Object value for com/macasaet/fernet/aws/secretsmanager/rotation/RotationRequest::toString to ( if (x != null) null else throw new RuntimeException ) → SURVIVED

Active mutators

Tests examined


Report generated by PIT 1.4.10